﻿#include "widget.h"
#include "ui_widget.h"
#include "QDebug"
#include <QMessageBox>
#include <QVector>

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_login_clicked()
{

    username.push_front( ui->lineEdit_username->text());
    password.push_front( ui->lineEdit_password->text());
    QMessageBox::about(this,"提示","登录成功");
}

void Widget::on_pushButton_show_clicked()
{
    it_username = username.begin();
    it_password = password.begin();
    qDebug() << "用户名:" << *(it_username);
    qDebug() << "密码:" << *(it_password);
}

